@value unit, blue-color, link-hover-color, dark-gray-color from  "../global/global.css";

.services {
  max-width: calc(unit * 50 + 2);
  padding: calc(unit * 4) calc(unit * 4) calc(unit * 3);

  background-color: #000;

  line-height: 10px; /* Eliminate gap between clickable blocks rows */
}

.active {
  font-weight: bold;
}

.item {
  display: inline-block;
  overflow-x: hidden;

  box-sizing: border-box;
  width: calc(unit * 14);
  height: calc(unit * 14);

  text-align: center;
  text-overflow: ellipsis;

  color: #fff;

  line-height: initial;

  &::after {
    height: calc(unit * 14);

    vertical-align: middle;
  }

  &:not(:hover),
  &:visited:not(:hover) {
    color: #fff;
  }

  /* Disable animation .ring-icon_loading in Header in Edge, see https://youtrack.jetbrains.com/issue/RG-928 */
  /* Supports MS Edge */
  @supports (-ms-accelerator: true) {
    animation-name: none;
  }
}

/* New line inside inline content */
.itemText::before {
  content: '\A';
  white-space: pre;
}

.itemLogo {
  display: inline-block;

  width: calc(unit * 6);
  height: calc(unit * 6);
  margin: calc(unit * 2) 0 calc(unit + 1);

  background-repeat: no-repeat;
  background-size: contain;
}

.activeItem {
  composes: item;
  composes: active;

  &:hover {
    color: #fff;
  }
}

.line {
  height: 1px;
  margin: calc(unit * 4) 0 calc(unit * 2);

  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.itemStacked {
  display: inline-block;

  width: 100%;
  margin-bottom: calc(unit * 2);

  text-decoration: none;

  line-height: calc(unit * 2);

  &,
  &:visited {
    color: dark-gray-color;
  }

  &:last-child {
    margin-bottom: -calc(unit * 3);
  }
}

.activeItemStacked {
  composes: itemStacked;
  composes: active;

  &:hover {
    color: dark-gray-color;
  }
}
